﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Medora.Model.Basic;
using Medora.Model.Institutions;

namespace Medora.DataContract
{
    public interface IScheduleItemRepository : IRepository<ScheduleItem> {
        ScheduleItem GetById(Guid id);
        IEnumerable<ScheduleItem> Get(Expression<Func<ScheduleItem, bool>> filter = null, Func<IQueryable<ScheduleItem>, IOrderedQueryable<ScheduleItem>> orderBy = null, string includeProperties = "");
        IEnumerable<ScheduleItem> GetTake(int pageSize, int page, Func<IQueryable<ScheduleItem>, IOrderedQueryable<ScheduleItem>> orderBy, Expression<Func<ScheduleItem, bool>> filter = null, string includeProperties = "");
        IEnumerable<ScheduleItem> GetTake(int pageSize, int page, Expression<Func<ScheduleItem, bool>> filter = null, SortInfo sortInfo = null, string includeProperties = "");
    }
}